package cn.xy.mapper.impl;

import cn.xy.mapper.StudentMapper;
import cn.xy.pojo.Student;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class StudentMapperImpl implements StudentMapper {

    @Autowired
    private SqlSessionTemplate sqlSessionTemplate;

    public List<Student> getStudentList() {
        return sqlSessionTemplate.getMapper(StudentMapper.class).getStudentList();
    }


}
